package com.hy.admin.dao;

import com.hy.admin.entity.ImageEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ImageDao {
    int deleteByPrimaryKey(Long id);

    int insert(ImageEntity record);

    int insertSelective(ImageEntity record);

    ImageEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ImageEntity record);

    int updateByPrimaryKey(ImageEntity record);

    int batchInsert(List<ImageEntity> imageList);

    List<String> selectByRelatedIdAndType(@Param("relatedId")Long relatedId,@Param("relatedType")Integer relatedType);

    int updateDeleteState(@Param("relatedId")Long relatedId,@Param("relatedType")Integer relatedType);
}